.class Lcom/waiqin365/base/login/fragment/activity/o;
.super Landroid/os/Handler;


# instance fields
.field final synthetic a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 8

    const/4 v7, 0x3

    const/4 v4, 0x2

    const/4 v6, 0x0

    const/4 v3, 0x1

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->dismissProgressDialog()V

    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_0

    :cond_0
    :goto_0
    :pswitch_0
    return-void

    :pswitch_1
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/base/login/b/a/bf;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/b/a/bf;->b()Z

    move-result v1

    if-eqz v1, :cond_2

    const-string/jumbo v1, "\"success\""

    iget-object v2, v0, Lcom/waiqin365/base/login/b/a/bf;->c:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v0, v4}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->a(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;I)I

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->b(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)V

    goto :goto_0

    :cond_1
    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    iget-object v0, v0, Lcom/waiqin365/base/login/b/a/bf;->c:Ljava/lang/String;

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->h(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setEnabled(Z)V

    goto :goto_0

    :cond_2
    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    iget v0, v0, Lcom/waiqin365/base/login/b/a/bf;->b:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->h(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setEnabled(Z)V

    goto :goto_0

    :pswitch_2
    iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;

    check-cast v0, Lcom/waiqin365/base/login/b/a/ay;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/b/a/ay;->b()Z

    move-result v1

    if-eqz v1, :cond_8

    const-string/jumbo v1, "1"

    iget-object v2, v0, Lcom/waiqin365/base/login/b/a/ay;->c:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_5

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    const v2, 0x7f080051

    invoke-virtual {v1, v2}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    new-instance v1, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v2, "cuslogin_mydata_data_mobileBind"

    invoke-static {v3}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/Boolean;)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    new-instance v1, Lcom/waiqin365/base/db/keyvalue/e;

    const-string/jumbo v2, "cuslogin_mydata_data_mobile"

    iget-object v3, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v3}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->i(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Lcom/waiqin365/base/db/keyvalue/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v1, v0}, Lcom/fiberhome/gaea/client/d/a;->a(Landroid/content/Context;Ljava/util/ArrayList;)V

    :try_start_0
    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/login/mainview/a;->p(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Lcom/waiqin365/base/login/d/o;

    invoke-direct {v1}, Lcom/waiqin365/base/login/d/o;-><init>()V

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/login/d/o;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v2, "\\|"

    invoke-virtual {v0, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_3

    array-length v2, v0

    if-ne v2, v7, :cond_3

    const-string/jumbo v2, "%s|%s|%s"

    const/4 v3, 0x3

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    const-string/jumbo v5, ""

    aput-object v5, v3, v4

    const/4 v4, 0x1

    iget-object v5, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v5}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->i(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)Ljava/lang/String;

    move-result-object v5

    aput-object v5, v3, v4

    const/4 v4, 0x2

    const/4 v5, 0x2

    aget-object v0, v0, v5

    aput-object v0, v3, v4

    invoke-static {v2, v3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/login/d/o;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/login/mainview/a;->l(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_3
    :goto_1
    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v0, v6}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->a(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;I)I

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/dailyreport/util/a;->a(Landroid/app/Activity;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->b(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->j(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)Landroid/widget/EditText;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string/jumbo v0, ""

    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->i(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_4

    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->i(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    const/16 v2, 0xb

    if-lt v1, v2, :cond_4

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->i(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1, v6, v7}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "****"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->i(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v2}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->i(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    add-int/lit8 v2, v2, -0x4

    iget-object v3, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v3}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->i(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->length()I

    move-result v3

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :cond_4
    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v1}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->j(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)Landroid/widget/EditText;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    :cond_5
    iget-object v0, v0, Lcom/waiqin365/base/login/b/a/ay;->d:Ljava/lang/String;

    if-eqz v0, :cond_6

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_7

    :cond_6
    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    const v1, 0x7f080050

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    :cond_7
    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->g(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setEnabled(Z)V

    goto/16 :goto_0

    :cond_8
    iget-object v1, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    iget v0, v0, Lcom/waiqin365/base/login/b/a/ay;->b:I

    invoke-static {v1, v0}, Lcom/waiqin365/lightapp/view/dk;->a(Landroid/content/Context;I)V

    iget-object v0, p0, Lcom/waiqin365/base/login/fragment/activity/o;->a:Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;

    invoke-static {v0}, Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;->g(Lcom/waiqin365/base/login/fragment/activity/AccountSafeBindActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setEnabled(Z)V

    goto/16 :goto_0

    :catch_0
    move-exception v0

    goto/16 :goto_1

    nop

    :pswitch_data_0
    .packed-switch 0xb
        :pswitch_1
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method
